﻿function getTicTac(a) { var p = "availability unknown"; if (a < 3000) { presence = "availability unknown"; } else if (a < 4500) { p = "availability available"; } else if (a < 6000) { p = "availability away"; } else if (a < 7500) { p = "availability busy"; } else if (a < 9000) { p = "availability away"; } else if (a < 12000) { p = "availability dnd"; } else if (a < 18000) { p = "availability away"; } else { p = "availability offline"; } return p; }